<%-- 
    Document   : VisitasProceso
    Created on : 8/11/2011
    Author     : Draggoth
--%>

<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<jsp:useBean id="controlv" class="control.VisitasControl" scope="page"/>

<%
    List<String> col_visit = null;
    String operacion = null;
    String op_status = null;
    String op_msg = null;
    
    operacion = request.getParameter("option_choice");
    
    op_status = "inicio";

    col_visit = controlv.recupera(operacion);
    
    if( col_visit.isEmpty() ) {
        op_msg = "error_visitas";
    }

    session.setAttribute("operacion", operacion);
    session.setAttribute("op_status", op_status);
    session.setAttribute("op_msg", op_msg);
    session.setAttribute("col_visit", col_visit);
    response.sendRedirect("visitas.jsp");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Procesando Visitas</title>
    </head>
    <body>
        <h1>...</h1>
    </body>
</html>
